package com.sanqi.work.manager;

import java.util.Collection;
import java.util.List;

import com.sanqi.work.domain.WorkUser;
import com.sanqi.work.domain.WorkUserAccount;

public interface IWorkUserAccountManager {
    public boolean editUserAccount(String userId, String opCode, String userAccount);

    WorkUserAccount getUserAccountByUserId(String userId);

    public List<WorkUserAccount> queryByUserIds(List<String> userIdList);
    
    public int removeByUserId(String userId);
    
    public int removeByUserIds(Collection<String> userId);
    
    public int saveAccount(WorkUserAccount account);

    int updateById(WorkUserAccount account);
    
    public WorkUser getUserByOpCode(String userOpCode);
    
    public WorkUser getUserByUserAccount(String userAccount);

    List<WorkUserAccount> listByUserAccount(String userAccount);

    List<WorkUserAccount> listByOpCode(String userOpCode);

    public List<WorkUserAccount> listByUserIds(Collection<String> userIds);
}
